var mongoose = require("mongoose");
var db = require('../lib/db');

var ProfileSchema = new mongoose.Schema({
    name        : { type: String },
    avatar      : { type: String },
    age         : { type: Number, default: 0 },
    school      : { type: String },
    description : { type: String },
    wechat      : { type: String },
    email       : { type: String },
    github      : { type: String }
});

var ProfileModel = db.model("profile", ProfileSchema);
module.exports = ProfileModel;
